package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.TvComment;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TvCommentMapper {

    Page<TvComment> findAll();

    List<TvComment> findByUserId(@Param("uId") Integer uId);

    List<TvComment> findByTvId(@Param("tvId") Integer tvId);

    void save(TvComment tvComment);

    void deleteById(@Param("tvcId") Integer tvcId);

}